package com.webdesign.dto;

/*
 * 学生对应作业的完成信息，包括学生id、学生姓名、作业标题、完成状态、以及是否为展示作品
 */
public class GradeInfoDTO {
	private String userid;
	
	private String username;
	
	private String title;
	
	private Integer score;
	
	private String state;
	
	private String classify;
	
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public String getState() {
		return state;
	}

	public void setState(Byte state) {
		if(state == 0){
			this.state = "未交";
		}else if(state == 1){
			this.state = "按时完成";
		}else{
			this.state = "超时完成";
		}
		
	}

	public String getClassify() {
		return classify;
	}

	public void setClassify(Byte classify) {
		if(classify == null){
			this.classify = "";
		}else if(classify == 1){
			this.classify = "优秀作品";
		}else if(classify == 2){
			this.classify = "较差作品";
		}
		
	}
	
}
